from django.urls import path, include,re_path
from apps.headline.views import *

urlpatterns = [
    re_path(r'^channels/$',ChannelListViews.as_view({
        'get':'list'
    })),
    #
    re_path(r'^article/(?P<id>\d+|-1)/channel/$',ArticleListView.as_view({
        'get':'list',

    })),

    re_path(r'^article/(?P<pk>\d+)/collect/$',ArticleListViewCollect.as_view({
        'put':'update'
    })),
    re_path(r'^article/(?P<pk>\d+)/$',ArticleMessage.as_view({
        'get':'retrieve'
    })),
    re_path(r'^article/$',IssueArticle.as_view({
        'post':'create'
    })),
    # re_path(r'^labels/$',ArticleLabels.as_view({'get':list})),
    re_path(r'^article/(?P<pk>\d+)/publish_comment/$',ContentArticle.as_view({
        'post':'create'
    })),
    re_path(r'^articles/search/$',SearchView.as_view({'get':'list'})),
    re_path(r'^article/(?P<id>\d+)/$', ArticleDetailView.as_view()),





]